{extend name="Public:base"/}

{block name="main"}
<div class="box-info">
    <form id="myform" action="{:U('Link/edit')}" method="post">
        <input type="hidden" id="id" name="id" value="{$vo['id']}" />
        <div class="form-group row">
            <label class="form-control-label col-md-2">链接类型</label>
            <div class="col-md-9">
                <label class="radio-inline checkbox_linktype">
                    <input type="radio" name="linktype" {eq name="vo.linktype" value="1"}checked{/eq} value="1"> 文字链接
                </label>
                <label class="radio-inline checkbox_linktype">
                    <input type="radio" name="linktype" {eq name="vo.linktype" value="2"}checked{/eq} value="2"> LOGO链接
                </label>
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2"><font color="red">*</font>网站名称  </label>
            <div class="col-md-9">
                <input type="text" class="form-control" name="name" value="{$vo.name}">
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2">网站LOGO</label>
            <div class="col-md-9" id="box_weblogo">
                <div id="weblogo_aid_box"></div>
                <input type="text" class="form-control pull-left w-300px" name="weblogo" id="weblogo" value="{$vo.weblogo}">
                <input type="button" class="btn btn-primary pull-sm-left" value="图片上传" onclick="javascript:swfupload('weblogo','{:get_auth(1,'204800',1)}',yesdo)">
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2"><font color="red">*</font>网站地址</label>
            <div class="col-md-9">
                <input type="text" class="form-control w-300px" name="siteurl"  value="{$vo.siteurl}">
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2">状态</label>
            <div class="col-md-9">
                <label class="radio-inline checkbox_status">
                    <input type="radio" name="status" {eq name="vo.status" value="1"}checked{/eq} value="1"> 已审核
                </label>
                <label class="radio-inline checkbox_status">
                    <input type="radio" name="status" {eq name="vo.status" value="0"}checked{/eq} value="0"> 未审核
                </label>
            </div>
        </div>
        <div class="form-actions">
            <input type="hidden" name="lang" value="1">
            <button type="submit" class="btn btn-primary ajax_form_edit">提交</button>
            <button type="button" class="btn btn-danger" onclick="javascript:history.back(-1);return false;">返回</button>
        </div>
    </form>
</div>
{/block}